/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.constants;

/**
 * java 常量
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: JavaCnst.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
public class JavaCnst {
    /**
     * JDK的安装路径
     ***/
    public final static String ENV_JAVA_HOME = "JAVA_HOME";
    /**
     * 临时目录
     */
    public final static String IO_TMP_DIR = "java.io.tmpdir";
    /**
     * 操作系统的名称
     */
    public final static String OS_NAME = "os.name";
    /**
     * 操作系统的版本号
     */
    public final static String OS_VERSION = "os.version";
    /**
     * 操作系统的构架
     */
    public final static String OS_ARCH = "os.arch";

    /**
     * Command
     */
    public enum Cmd {
        /**
         * -cp指类运行所依赖其它类的路径,目录和 zip/jar 文件的类搜索路径
         */
        CP(" -cp ", "指类运行所依赖其它类的路径"),
        /**
         * -classpath指类运行所依赖其它类的路径,目录和 zip/jar 文件的类搜索路径
         */
        CLASSPATH(" -classpath ", "是指类运行所依赖其它类的路径");
        /**
         * code
         */
        public final String code;
        /**
         * title
         */
        public final String title;

        /**
         * @param code  String
         * @param title String
         */
        Cmd(String code, String title) {
            this.code = code;
            this.title = title;
        }
    }
}